package net.trustie.dao;

import net.trustie.model.gna_Model;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface Gna_Dao {
	
	/*标准表中的字段*//*+ "insert into t_project (`deal_name`,`name`,`description`,`last_update_time`,
	 * `registered_time`,`followers_num`,`url`,`urlMD5`,`pageMD5`,`language`,`tags`,`contributors_num`,
	 * `monitor`,`status`,`download_num`,`visit_num`,`category`,`crawled_time`,`history`,`source`,`license`,`platform`")*/
	
	/*标准表中的字段*//*+ "insert into t_project (`deal_name`,`name`,`description`,`last_update_time`,
	 * `registered_time`,`followers_num`,`url`,`urlMD5`,`pageMD5`,`language`,`tags`,`contributors_num`,
	 * `monitor`,`status`,`download_num`,`visit_num`,`category`,`crawled_time`,`history`,`source`,`license`,`platform`")*/
	@Insert("insert into gna (`url`,`name`,`description`,`crawled_time`,`extractTime`,`registered_time`,`last_update_time`,`history`) "
			
			+ "values (#{model.project_url},#{model.project_name},"
			+ "#{model.project_description},#{model.crawled_time},#{model.extractTime},"
			+ "#{model.project_created_time},#{model.project_updated_time},#{model.history})")	
		
		
	
	/*1标准表中独有,设置为允许为空,INSERT需要补齐*/
	/*2与标准表对应字段*/
	/*3原社区中独有保留字段*/ 
	
	/*	@Insert("insert into gna (`2url`,`2name`,`2description`,`2crawled_time`,`3extractTime`,`2registered_time`,`2last_update_time`,`2history`,"
	+ "`deal_name`,`followers_num`,`urlMD5`,`pageMD5`,`language`,`tags`,`contributors_num`,"
	+ "`monitor`,`status`,`download_num`,`visit_num`,`category`,`source`,`license`,`platform`) "*/
	
	public void add(@Param("model") gna_Model model);

}
